import {ActivityItem} from "../roster-list/roster-list-item.model";

export class RosterDetailModel {
    //客户id
    id: number;
    //客户姓名
    name: string;
    //客户手机号码
    tel: number;
    //是否在通讯录
    isInPhoneBook: boolean;
    //进行中的活动
    activitysInProgress: ActivityDetail[];
    //待开始的活动
    activitysInComing: ActivityDetail[];
    //已结束的活动
    activitysFinished: ActivityDetail[];
    //更多信息
    moreInfo: ActivityMoreInfo[];
    //客户类型
    clientType?: any;

    constructor () {
        this.activitysInProgress = [];
        this.activitysInComing = [];
        this.activitysFinished = [];
        this.isInPhoneBook = false;
    }
}

export class ActivityDetail extends ActivityItem {
    productNext: string;
    //注册抽奖
    registerlottery?: string;
    //转发抽奖
    forwardlottery?: string;
    //是否转发
    isForward?: string;
    //转发点击量
    forwardClicks?: string;
}

export interface ActivityMoreInfo {
    key: string;
    any: any
}
